package com.example.demo.vo;

import com.example.demo.entity.House;
import com.example.demo.entity.User;

public class HouseVO {

    private Long userId;

    private String platForm;

    private String userName;

    private String sex;

    private String address;

    private String phone;

    private String houseId;

    private Integer deleted;

    private Integer floorId;

    private Integer unitId;

    private String roomId;

    public HouseVO(){}

    public HouseVO(User user, House house){
        this.userId = user.getId();
        this.platForm = user.getPlatForm();
        this.userName = user.getUserName();
        this.deleted = user.getDeleted();
        if(house!=null){
            this.sex = house.getSex();
            this.address = house.getAddress();
            this.phone = house.getPhone();
            this.houseId = house.getHouseId();
            this.floorId = house.getFloorId();
            this.unitId = house.getUnitId();
            this.roomId = house.getRoomId();
        }
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPlatForm() {
        return platForm;
    }

    public void setPlatForm(String platForm) {
        this.platForm = platForm;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getFloorId() {
        return floorId;
    }

    public void setFloorId(Integer floorId) {
        this.floorId = floorId;
    }

    public Integer getUnitId() {
        return unitId;
    }

    public void setUnitId(Integer unitId) {
        this.unitId = unitId;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }
}
